//
// Created by 刘昱杉2020 on 2023/4/14.
//

#ifndef CAR_ADV_H
#define CAR_ADV_H

#include "motor.h"
#include "detect.h"



enum
{
    ADV_MODE_SPEED=0,
    ADV_MODE_ANGLE
};
typedef  struct
{
    uint8_t mode;   //底盘模式
    float average;
    Motor motors[MOTOR_NUM];  //电机结构体
    Detect  detect;           //检测结构体
//    uint8_t road_state;
}ADV;


void adv_init();


#endif //CAR_ADV_H
